package com.amigo.online.consumer.user.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;
import com.amigo.online.common.param.dto.user.InvoiceAddressDto;

@FeignClient(name = "amigo-online-provider-user")
public interface InvoiceService {

	@RequestMapping(value = "/invoice/update", method = RequestMethod.POST)
	ResponseEntity<Response> updateInvoiceAddress(InvoiceAddressDto invoiceAddressDto);
	
	@RequestMapping(value = "/invoice/my", method = RequestMethod.GET)
	ResponseEntity<Response> selectAddressByUser();
	
	@RequestMapping(value = "/invoice/create", method = RequestMethod.POST)
	ResponseEntity<Response> createInvoiceAddress(InvoiceAddressDto invoiceAddressDto);
}
